<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="user" value="${requestScope.user }" />
<div class="center_content">
	<div class="center_title_bar">UserInfo</div>
	<div class="prod_box_big">
		<div class="center_prod_box_big">
		<div><button><a style="font-size: 20px; text-decoration: none; color: blue;" href="OrderManage.do">Manage Order</a></button></div>
			<form id="frmRegister" name="frmRegister" method="post"
				action="UpdateUserDetail.do">
				<div class="login_form">
					<c:if test="${requestScope.updatesuccess != null}">
							<div class="login_form_row">
								<font color="#45c3d4" size="16px">${requestScope.updatesuccess}</font>
							</div>
					</c:if>
					<div class="login_form_row">
						<label class="contact"><strong>First Name:</strong></label> 
						<input type="text" class="contact_input" name="firstname" value="${user.firstname }"/>
					</div>
					<div class="login_form_row">
						<label class="contact"><strong>Last Name:</strong></label> 
						<input type="text" class="contact_input" name="lastname" value="${user.lastname }"/>
					</div>
					<div class="login_form_row">
						<label class="contact"><strong>E-Mail Address:</strong></label> 
						<label><strong>${user.email }</strong></label>
					</div>
					<div class="login_form_row">
						<label class="contact"><strong>Zip Code:</strong></label> 
						<input type="text" class="contact_input" name="zipcode" value="${user.zipcode }"/>
					</div>
					<div class="login_form_row">
						<label class="contact"><strong>Phone Number:</strong></label> 
						<input type="text" class="contact_input" name="phonenumber" value="${user.phonenumber }"/>
					</div>
					<div class="login_form_row">
						<input type="submit" name="UpdateUser" value="Update User" />
					</div>
				</div>
			</form>
			<form id="frmRegister" name="frmRegister" method="post"
				action="UpdateUserPassword.do">
				<div class="login_form">
					<div class="login_form_row">
						<label class="contact"><strong>Password Old:</strong></label> 
						<input type="password" class="contact_input" name="passwordold"/>
					</div>
					<div class="login_form_row">
						<label class="contact"><strong>Password New:</strong></label> 
						<input type="password" class="contact_input" name="passwordnew"/>
					</div>
					<div class="login_form_row">
						<label class="contact"><strong>Rewrite Password New:</strong></label> 
						<input type="password" class="contact_input" name="passwordnewre"/>
					</div>
					<div class="login_form_row">
						<input type="submit" name="UpdatePassword" value="Update Password" />
					</div>
					<c:if test="${requestScope.returnresult != null}">
							<div class="login_form_row">
								<font color="#FF0000">${requestScope.returnresult}</font>
							</div>
					</c:if>
				</div>
			</form>
		</div>
	</div>
</div>
